package com.alibaba.cloud.tech.controller;

import com.alibaba.cloud.tech.entity.TechSheet;
import com.alibaba.cloud.tech.service.TechSheetService;
import com.alibaba.framework.domain.ResponseWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/techSheet")
public class TechSheetController {

    @Autowired
    private TechSheetService techSheetService;

    @PostMapping("/add")
    public ResponseWrapper<Integer> addMedSheet(@RequestBody TechSheet techSheet) {

        int i = techSheetService.add(techSheet);
        return ResponseWrapper.Success();
    }
}
